/*
********************************************************************************
* Copyright (C) 2021, xiang.D <dx_65535@163.com>.
* All right reserved.
*
* File Name   : command.h
* Author      :
* Version     : V1.0
* Description :
* Journal     : 2021-11-27 init v1.0
* Brief       : Blog: https://blog.csdn.net/qq_38750572?spm=1001.2014.3001.5343
* Others      :
********************************************************************************
*/
#ifndef __CMD_TYPE_H__
#define __CMD_TYPE_H__

#define CMD_BYTES       16

typedef enum
{
    CMD_LED             = 0x1 ,
    CMD_MOTOR           = 0x2 ,
    CMD_TYPE_MAX
} ECmdType;

typedef enum
{
    /***************  LED  ***************/
    CMD_LED_ON          = CMD_LED << CMD_BYTES | 1,
    CMD_LED_OFF,
    CMD_LED_HORSE,

    /*************** MOTOR ***************/
    CMD_MOTOR_FORWARD   = CMD_MOTOR << CMD_BYTES | 1,
    CMD_MOTOR_BACKWARD,

    CMD_ACTION_MAX
} ECmdAction;

#endif